using INTEX.DataBase;
using ReflectionStudio.Core.Events;
using System;
using System.Data;
using System.Windows;
using System.Windows.Data;
using System.Collections.Generic;
namespace WPFExcelReport
{
    public partial class VBSGROE : ViewModelBase
    {
        //
        public DataSet LOADBYWS(Dictionary<string, object> pm)
        {

            dwData = TBMain.NewRow();
            dwData["WTGMANDANT"] = app.Mandant;
            dwData["WTGART"] = pm["ART"].ToString();
            dwData["WTGVAR"] = pm["VAR"].ToString();
            //    SResult = QWTGEW01(dwData);
            return SResult;
        }
        public DataSet CREATEBYWS(Dictionary<string, object> pm)
        {
            dwData = TBMain.NewRow();
            SetUpNewRow(ref dwData);
            dwData["WTGMANDANT"] = app.Mandant;
            dwData["WTGART"] = pm["ART"].ToString();
            dwData["WTGVAR"] = pm["VAR"].ToString();
            TBMain.Rows.InsertAt(dwData, 0);
            //InsertWTGEW(dwData);
            return SResult;
        }
    }
    public partial class VBSGROE
    {

        public string BSGMANDANT { get { if (dwMaster == null) return ""; return dwMaster["BSGMANDANT"].ToString(); } set { if (dwMaster == null) return; dwMaster["BSGMANDANT"] = value; OnPropertyChanged("BSGMANDANT", value); } } //lENGth 2
        public string BSGART { get { if (dwMaster == null) return ""; return dwMaster["BSGART"].ToString(); } set { if (dwMaster == null) return; dwMaster["BSGART"] = value; OnPropertyChanged("BSGART", value); } } //lENGth 20
        public string BSGMTYP { get { if (dwMaster == null) return ""; return dwMaster["BSGMTYP"].ToString(); } set { if (dwMaster == null) return; dwMaster["BSGMTYP"] = value; OnPropertyChanged("BSGMTYP", value); } } //lENGth 8
        public double BSGLFD { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["BSGLFD"].ToString()); } set { if (dwMaster == null) return; dwMaster["BSGLFD"] = value; OnPropertyChanged("BSGLFD", value); } } //lENGth 0
        public double BSGAENDZL { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["BSGAENDZL"].ToString()); } set { if (dwMaster == null) return; dwMaster["BSGAENDZL"] = value; OnPropertyChanged("BSGAENDZL", value); } } //lENGth 0
        public string BSGAENDBEN { get { if (dwMaster == null) return ""; return dwMaster["BSGAENDBEN"].ToString(); } set { if (dwMaster == null) return; dwMaster["BSGAENDBEN"] = value; OnPropertyChanged("BSGAENDBEN", value); } } //lENGth 8
        public double BSGAENDDAT { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["BSGAENDDAT"].ToString()); } set { if (dwMaster == null) return; dwMaster["BSGAENDDAT"] = value; OnPropertyChanged("BSGAENDDAT", value); } } //lENGth 0
        public string BSGNEUBEN { get { if (dwMaster == null) return ""; return dwMaster["BSGNEUBEN"].ToString(); } set { if (dwMaster == null) return; dwMaster["BSGNEUBEN"] = value; OnPropertyChanged("BSGNEUBEN", value); } } //lENGth 8
        public double BSGNEUDAT { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["BSGNEUDAT"].ToString()); } set { if (dwMaster == null) return; dwMaster["BSGNEUDAT"] = value; OnPropertyChanged("BSGNEUDAT", value); } } //lENGth 0
        public string BSGKETTART { get { if (dwMaster == null) return ""; return dwMaster["BSGKETTART"].ToString(); } set { if (dwMaster == null) return; dwMaster["BSGKETTART"] = value; OnPropertyChanged("BSGKETTART", value); } } //lENGth 6
        public double BSGMAXLG { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["BSGMAXLG"].ToString()); } set { if (dwMaster == null) return; dwMaster["BSGMAXLG"] = value; OnPropertyChanged("BSGMAXLG", value); } } //lENGth 0
        public double BSGMAXGW { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["BSGMAXGW"].ToString()); } set { if (dwMaster == null) return; dwMaster["BSGMAXGW"] = value; OnPropertyChanged("BSGMAXGW", value); } } //lENGth 0
        public double BSGLOS { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["BSGLOS"].ToString()); } set { if (dwMaster == null) return; dwMaster["BSGLOS"] = value; OnPropertyChanged("BSGLOS", value); } } //lENGth 0
        public double BSGANZTB { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["BSGANZTB"].ToString()); } set { if (dwMaster == null) return; dwMaster["BSGANZTB"] = value; OnPropertyChanged("BSGANZTB", value); } } //lENGth 0
        public string BSGLLEIST { get { if (dwMaster == null) return ""; return dwMaster["BSGLLEIST"].ToString(); } set { if (dwMaster == null) return; dwMaster["BSGLLEIST"] = value; OnPropertyChanged("BSGLLEIST", value); } } //lENGth 4
        public string BSGRLEIST { get { if (dwMaster == null) return ""; return dwMaster["BSGRLEIST"].ToString(); } set { if (dwMaster == null) return; dwMaster["BSGRLEIST"] = value; OnPropertyChanged("BSGRLEIST", value); } } //lENGth 4
        public string BSGFILLER { get { if (dwMaster == null) return ""; return dwMaster["BSGFILLER"].ToString(); } set { if (dwMaster == null) return; dwMaster["BSGFILLER"] = value; OnPropertyChanged("BSGFILLER", value); } } //lENGth 36

    }
}
